package com.gcu.admin.api.api;

import com.gcu.admin.api.dto.UserAuthDTO;
import com.gcu.common.base.result.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2023/9/27 15:39
 * @ package_name:com.gcu.admin.api.api
 * @ project_name:SpringCloud-Oauth2
 * @ desc: 用户信息获取Feign调用
 */
@FeignClient(value = "gcu-admin")
public interface UserFeignClient {

    @GetMapping("/api/v1/users/username/{username}")
    SysResult<UserAuthDTO> getUserByUsername(@PathVariable String username);

}
